from transformers import pipeline

classifier1 = pipeline("sentiment-analysis")
print(classifier1("I've been waiting for a HuggingFace course my whole life."))
print(classifier1(
    ["I've been waiting for a HuggingFace course my whole life.", "I hate this so much!"]
))


unmasker1 = pipeline("fill-mask")
print(unmasker1("This course will teach you all about <mask> models.", top_k=2))

question_answerer = pipeline("question_answerering")
res = question_answerer(
    question = "where do i work?"
    context="my name is  Sylvain and i work at uggingface"
)
print(res)